Get creation time of Baseline

Hello everyone,

I'm trying to extract the creation date of a baseline to compare it with object isnide a module. Until now I am only able to extract the date but not the time. Can anyone help me? Does DOORS even store the creation time of a Baseline?

Thank You...
Boitumelo - Wed Sep 21 04:42:37 EDT 2011

Re: Get creation time of Baseline
Peter_Albert - Wed Sep 21 05:10:29 EDT 2011

Hi,

this seems to be version dependent: If I run this DXL on an old Module (i.e around since pre 8.x):

Baseline b
Date d
for b in current Module do
{
  d = dateOf b
  print "\n  " (dateOf intOf d) ""
}


then for baselines taken in versions < 8.x, I only get "00:00:00" as time stamp, but since the version upgrade to 8.3, I get a valid time stamp.

Note that you need the "(dateOf intOf d)" construct, "print d" does not reveal the time.

For earlier baselines (i.e. < 8.3), the creation date is in any case stored (with time) in the Module history of the next version, but that would be a tedious approach as you would have to load each baseline.

Regards,

Peter

Re: Get creation time of Baseline
SystemAdmin - Wed Sep 21 06:52:48 EDT 2011

Peter_Albert - Wed Sep 21 05:10:29 EDT 2011

Hi,

this seems to be version dependent: If I run this DXL on an old Module (i.e around since pre 8.x):

Baseline b
Date d
for b in current Module do
{
  d = dateOf b
  print "\n  " (dateOf intOf d) ""
}


then for baselines taken in versions < 8.x, I only get "00:00:00" as time stamp, but since the version upgrade to 8.3, I get a valid time stamp.

Note that you need the "(dateOf intOf d)" construct, "print d" does not reveal the time.

For earlier baselines (i.e. < 8.3), the creation date is in any case stored (with time) in the Module history of the next version, but that would be a tedious approach as you would have to load each baseline.

Regards,

Peter

Note that you need the "(dateOf intOf d)" construct, "print d" does not reveal the time.

or use the dateAndTime function, Date dateAndTime(Date d)

Re: Get creation time of Baseline
Boitumelo - Thu Sep 22 03:20:26 EDT 2011

Thank You.